// 引入工具类
import axios from '../config'

// 使用
const URL = 'api-ftp' // 公共前缀地址
export const sceneManage = {
	//分页查询 查询所有业务元素
	findAll(data) {
		return axios.post(URL + '/ftp/sceneManage/findAll', data)
	},
	save(data) {
		return axios.post(URL + '/ftp/sceneManage/save', data)
	},
	remove(data) {
		return axios.post(URL + '/ftp/sceneManage/remove', data)
	},

	//检查情景编码是否唯一
	checkSceneCodeUnique(data,loading=false) {
		return axios.post(URL + '/ftp/sceneManage/checkSceneCodeUnique', data,loading)
	},
	
	checkSceneDefaultFlag(data,loading=false) {
		return axios.post(URL + '/ftp/sceneManage/checkSceneDefaultFlag', data,loading)
	},

	//检查情景名称是否唯一
	checkSceneNameUnique(data,loading=false) {
		return axios.post(URL + '/ftp/sceneManage/checkSceneNameUnique', data,loading)
	},
    //删除校验-规则组是否被情景引用
	checkUsing(data,loading=false) {
		return axios.post(URL + '/ftp/sceneManage/checkUsing', data,loading)
	},

	findCurveRuleGroup(data) {
		return axios.post(URL + '/ftp/sceneManage/findCurveRuleGroup', data)
	},

	findHistory(data) {
		return axios.post(URL + '/ftp/sceneManage/findHistory', data)
	},

	
	findMethodRuleGroup(data) {
		return axios.post(URL + '/ftp/sceneManage/findMethodRuleGroup', data)
	},
	
	queryAllEnable(data) {
		return axios.post(URL + '/ftp/sceneManage/queryAllEnable', data)
	},
    //根据情景ID即sceneId查询被斥项
	findSceneAdjListBySceneId(data) {
		return axios.post(URL + '/ftp/sceneAdjRule/findSceneAdjListBySceneId', data)
	},
     //根据情景ID即sceneId查询被斥项
	findSceneExcludeAdjListBySceneId(data) {
		return axios.post(URL + '/ftp/sceneExcludeAdj/findSceneExcludeAdjListBySceneId', data)
	},
    //据情景ID即sceneId查询保留项
	findSceneReserveAdjListBySceneId(data) {
		return axios.post(URL + '/ftp/sceneReserveAdj/findSceneReserveAdjListBySceneId', data)
	},
 

}




